﻿namespace EyeOpen.Util
{
    using System;
    using System.Security.Cryptography;
    using System.Text;

    public static class SecurityUtility
    {
        public static string ComputeBase64MD5Hash(string value)
        {
            byte[] passwordHashBuffer = MD5.Create().ComputeHash(ASCIIEncoding.UTF8.GetBytes(value));
            return Convert.ToBase64String(passwordHashBuffer);
        }
    }
}
